# 作者：SP
# 开发时间：2025/3/7 15:00
class Car:
    def __init__(self,make,model,year):
        self.make = make
        self.model = model
        self.year = year

    def descrtion(self):
        print(f'{self.make} {self.moedel} {self.year}')
class ElectricCar(Car):
    def __init__(self,make,model,year):
        super().__init__(make,model,year)
        self.battery_size = 75                           #定义子类独有的属性

    def describe_battery(self):
        '打印一条关于电瓶的信息'
        print(f'This car has a {self.battery_size}-kwh battery')  #定义子类独有的方法